
/**
 * 病例模版模型
 */

const db = require('./index');
const Schema = db.Schema;

const CasetemplateModel = new Schema({
    id: { type: Number, default: "" },//模版序号
    name: String,//模版名称
    department: String,//关联科室
    doctor: { type: String, require: true },//医生ID
    createman: String,//创建人
    createtime: String,//创建时间
    state: Number,//状态   0:停用  1:启用

    action: String, //主诉
    nowmedical: String, //现病史
    historymedical: String, //既往史
    personage: String, //个人史
    family: String, //家族史
    physique: String,//体格检查
    laboratoryassist: String,//实验室及辅助检查
    treatmentoptions: String,//  治疗意见

});

const Casetemplate = db.model('Casetemplate', CasetemplateModel);
module.exports = Casetemplate;